class Novel extends Book {
    private String type;

    public Novel(String name, String author, double price, String type) {
        super(name, author, price);
        this.type = type;
    }

    @Override
    public String toString() {
        return "小说《" + getName() + "》，作者：" + getAuthor() + "，类别：" + type + "，价格：" + getPrice() + "元";
    }
}